package zzzhc.image.model;

import java.awt.image.BufferedImage;

import zzzhc.image.recognize.FilterManager;
import zzzhc.image.recognize.RecognizeContext;

public class OpPanelModel {

	private CaptureTableModel captureTableModel;

	private BufferedImage originImage;

	private BufferedImage currentImage;

	private BufferedImage[] splitImage;

	private BufferedImage[] convertedSplitImage;

	private RecognizeContext source;

	private int imageIndex;

	private FilterManager filterManager = new FilterManager();

	private FilterManager lastFilterManager;

	public FilterManager getLastFilterManager() {
		return lastFilterManager;
	}

	public void setLastFilterManager(FilterManager lastFilterManager) {
		this.lastFilterManager = lastFilterManager;
	}

	public int getImageIndex() {
		return imageIndex;
	}

	public void setImageIndex(int imageIndex) {
		this.imageIndex = imageIndex;
	}

	public String getCode() {
		return captureTableModel.getCode(imageIndex);
	}

	public RecognizeContext getSource() {
		return source;
	}

	public void setSource(RecognizeContext source) {
		this.source = source;
	}

	public BufferedImage[] getConvertedSplitImage() {
		return convertedSplitImage;
	}

	public void setConvertedSplitImage(BufferedImage[] convertedSplitImage) {
		this.convertedSplitImage = convertedSplitImage;
	}

	public BufferedImage getCurrentImage() {
		return currentImage;
	}

	public void setCurrentImage(BufferedImage currentImage) {
		this.currentImage = currentImage;
	}

	public BufferedImage getOriginImage() {
		return originImage;
	}

	public void setOriginImage(BufferedImage originImage) {
		this.originImage = originImage;
	}

	public BufferedImage[] getSplitImage() {
		return splitImage;
	}

	public void setSplitImage(BufferedImage[] splitImage) {
		this.splitImage = splitImage;
	}

	public CaptureTableModel getCaptureTableModel() {
		return captureTableModel;
	}

	public void setCaptureTableModel(CaptureTableModel captureTableModel) {
		this.captureTableModel = captureTableModel;
	}

	public FilterManager getFilterManager() {
		return filterManager;
	}

	public void setFilterManager(FilterManager filterManager) {
		this.filterManager = filterManager;
	}

}
